package com.huabo.contract.mysql.mapper;

import com.huabo.contract.mysql.entity.TblRiskeventMySql;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author huabo
 * @since 2022-04-16
 */
public interface TblRiskeventMySqlMapper extends BaseMapper<TblRiskeventMySql> {

    @Select("select * from TBL_RISKEVENT WHERE RISEVEID in ( SELECT RISKID FROM TBL_FLOW_RISK fi where  fi.TASKID= #{taskId})")
    List<TblRiskeventMySql> findByTaskAll(String taskId);
}
